package com.suyeer.common;

/**
 * Created by jun on 2017/7/23.
 */
public enum ParamTypeEnum {
    STRING_NOT_BLANK("STRING_NOT_BLANK", "String 参数不能是空字符串!"),
    STRING_LENGTH_GTE_6("STRING_LENGTH_GHE_6", "String 参数长度至少为6位!"),
    STRING_LENGTH_LTE_20("STRING_LENGTH_LHE_20", "String 参数长度最长为20位!"),
    INTEGER("INTEGER", "Integer 参数必须是整数型!"),
    INTEGER_GT_0("INTEGER_GH_0", "Integer 参数必须大于0!");

    private final String code;
    private final String des;

    ParamTypeEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }

    public String getDes() {
        return des;
    }
}
